package com.hk.commons.entity.view;

import javax.persistence.Embeddable;
import java.io.Serializable;

/**
 *
 * @author Evan
 * @date 2017/12/13
 */
@Embeddable
public class SysUserExcelViewId implements Serializable {
    private String userId;

    private String paymentId;

    public SysUserExcelViewId(){
        super();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(String paymentId) {
        this.paymentId = paymentId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        SysUserExcelViewId that = (SysUserExcelViewId) o;

        if (!userId.equals(that.userId)) {
            return false;
        }
        return paymentId.equals(that.paymentId);
    }

    @Override
    public int hashCode() {
        int result = userId.hashCode();
        result = 31 * result + paymentId.hashCode();
        return result;
    }
}
